package com.xiyou.luckdraw.api.converter;

import com.xiyou.luckdraw.api.dal.entitys.AnswerBank;
import com.xiyou.luckdraw.api.dal.entitys.UserInfo;
import com.xiyou.luckdraw.api.dto.answer.AddAnswerBankRequest;
import com.xiyou.luckdraw.api.dto.answer.AnswerBankDto;
import com.xiyou.luckdraw.api.dto.user.UserInfoListDto;
import com.xiyou.luckdraw.api.dto.user.UserInfoListRequest;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @ClassName: AnswerBankConverter
 * @Description: 答题库转换
 * @author: limingxing
 * @Date: 2019-10-09 11:00
 */
@Mapper(componentModel = "spring")
public interface UserInfoConverter {

    @Mappings({})
    UserInfoListDto req2UserInfo(UserInfo userInfo);

    List<UserInfoListDto> userInfos2Dto(List<UserInfo> userInfos);

    @Mappings({})
    UserInfo req2UserInfo(UserInfoListRequest request);
}
